﻿using Majoopic.Service.Model;
using System.Drawing;
using System.Windows.Media.Imaging;
using System.Windows.Media;

namespace Majoopic.WPFClient.Model
{
    public class ImageModel : BaseModel
    {

        private ImageInformation _ImageInfo;
        /// <summary>
        /// 
        /// </summary>
        public ImageInformation ImageInfo
        {
            get
            {
                return this._ImageInfo;
            }
            set
            {
                if (this._ImageInfo != value)
                {
                    this._ImageInfo = value;
                    this.OnPropertyChanged("ImageInfo");
                }
            }
        }


        private ImageSource _Thumbnail;
        /// <summary>
        /// 
        /// </summary>
        public ImageSource Thumbnail
        {
            get
            {
                return this.ImageInfo.HeaderInformation.Thumbnail;
            }
            set
            {
                if (this._Thumbnail != value)
                {
                    this._Thumbnail = value;
                    this.OnPropertyChanged("Thumbnail");
                }
            }
        }

        public ImageModel()
        {

        }

        public ImageModel(ImageInformation imageInfo)
        {
            // TODO: Complete member initialization
            this.ImageInfo = imageInfo;
        }
    }
}
